import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import cls from '@feidao/web/atom/browser/ui/set-node-cls';
export default async function a005(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	// 小眼睛
	const dom = args[0].currentTarget;
	const ipt_dom = dom.previousElementSibling;
	const type = dom.getAttribute('switch');

	if (type === 'open') {
		ipt_dom.type = 'text';
		cls(dom, 'icon-Group-', false);
		cls(dom, 'icon-icon-test', true);
		dom.setAttribute('switch', 'shut');
	} else if (type === 'shut') {
		ipt_dom.type = 'password';
		cls(dom, 'icon-icon-test', false);
		cls(dom, 'icon-Group-', true);
		dom.setAttribute('switch', 'open');
	}
}

